package com.treetao.union.db.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.treetao.union.db.model.SysMenu;
import com.treetao.union.db.model.vo.ShowMenu;
import com.treetao.union.db.model.vo.ZtreeVO;

/**
 * <p>
 *  服务类
 * </p>
 */
public interface SysMenuService extends IService<SysMenu> {

    List<SysMenu> selectAllMenus(Map<String,Object> map);

    List<ZtreeVO> showTreeMenus();

    List<ShowMenu> getShowMenuByUser(Long id);

    void saveOrUpdateMenu(SysMenu menu);

    int getCountByPermission(String permission);

    int getCountByName(String name);

}
